//
//  JQAlertView.h
//  AlertViewDemo
//
//  Created by James on 15/7/22.
//  Copyright (c) 2015年 JQ. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, JQAlertAnimation){
    JQAlertAnimationDefault,
    JQAlertAnimationDropDown,
    JQAlertAnimationFlyOut,
    JQAlertAnimationFlipHorizontal
};

@class JQAlertView;
typedef void(^JQAlertButtonClickBlock)(JQAlertView *alert, NSInteger buttonIndex);

@interface JQAlertView : UIView

+ (instancetype)alertWithTitle:(NSString *)title
                       message:(NSString *)msg
                    clickBlock:(JQAlertButtonClickBlock)clickBlock;

+ (instancetype)alertWithTitle:(NSString *)title
                       message:(NSString *)msg
                      okButton:(NSString *)okBtnTitle
                  cancelButton:(NSString *)cancelBtnTitle
                    clickBlock:(JQAlertButtonClickBlock)clickBlock;

- (void)show;
- (void)showWithAnimation:(JQAlertAnimation)animation;

- (void)dismiss;
- (void)dismissWithAnimation:(JQAlertAnimation)animation;

@end
